﻿using System.Windows;
using System.Windows.Controls;

namespace AZai.View.HomeControl
{
    /// <summary>
    /// UCMyApp.xaml 的交互逻辑
    /// </summary>
    public partial class UCMyApp : UserControl
    {
        public UCMyApp()
        {
            InitializeComponent();
        }

        private void ckJJ1_Click(object sender, RoutedEventArgs e)
        {
            if (ckJJ1.IsChecked == true)
            {
                bottomPanel.Height = new GridLength(20);
                ckJJ1.IsChecked = true;
            }
            else
            {
                bottomPanel.Height = new GridLength(160);
                ckJJ1.IsChecked = false;
            }
        }

        private void btnLeft_Click(object sender, RoutedEventArgs e)
        {
            scrollViewer.LineLeft();
            scrollViewer.LineLeft();
            scrollViewer.LineLeft();
            scrollViewer.LineLeft();
        }

        private void btnRight_Click(object sender, RoutedEventArgs e)
        {
            scrollViewer.LineRight();
            scrollViewer.LineRight();
            scrollViewer.LineRight();
            scrollViewer.LineRight();
        }
    }
}
